package com.qidian.buy.order.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 戴着假发的程序员
 * @since 2024-05-21
 */
@TableName("buy_orderitem")
public class Orderitem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 明细编号
     */
    @TableId("orderitem_id")
    private Long orderitemId;

    /**
     *  订单编号
     */
    private String orderId;

    /**
     * 商品编号
     */
    private Long itemId;

    /**
     * 商品数量
     */
    private Integer itemCount;

    /**
     * 小计
     */
    private String subTotal;

    public Long getOrderitemId() {
        return orderitemId;
    }

    public void setOrderitemId(Long orderitemId) {
        this.orderitemId = orderitemId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Integer getItemCount() {
        return itemCount;
    }

    public void setItemCount(Integer itemCount) {
        this.itemCount = itemCount;
    }

    public String getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(String subTotal) {
        this.subTotal = subTotal;
    }

    @Override
    public String toString() {
        return "Orderitem{" +
            "orderitemId = " + orderitemId +
            ", orderId = " + orderId +
            ", itemId = " + itemId +
            ", itemCount = " + itemCount +
            ", subTotal = " + subTotal +
        "}";
    }
}
